package com.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.web.entity.Course;
import com.web.entity.Student;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CourseMapper extends BaseMapper<Course> {

    @Select("select * from course where id in(select course_id from takes where student_id=#{stuId})")
    List<Course> queryCoursesByStuId(Integer stuId);
    


}
